﻿using DevExpress.Xpo;
using Model.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Bill
{
    public class TB_AdjustPriceDetail : BaseXPObjectClass
    {
        public TB_AdjustPriceDetail(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        TB_AdjustPrice fAdjustPriceID;
        [Association("AdjustPrice-AdjustPriceDetail")]
        public TB_AdjustPrice AdjustPriceID
        {
            get { return fAdjustPriceID; }
            set { SetPropertyValue<TB_AdjustPrice>("AdjustPriceID", ref fAdjustPriceID, value); }
        }
        int fRowNum;
        public int RowNum
        {
            get { return fRowNum; }
            set { SetPropertyValue<int>("RowNum", ref fRowNum, value); }
        }
        P_Product fProductID;
        public P_Product ProductID
        {
            get { return fProductID; }
            set { SetPropertyValue<P_Product>("ProductID", ref fProductID, value); }
        }
        decimal fOldSellPrice;
        public decimal OldSellPrice
        {
            get { return fOldSellPrice; }
            set { SetPropertyValue<decimal>("OldSellPrice", ref fOldSellPrice, value); }
        }
        decimal fNewSellPrice;
        public decimal NewSellPrice
        {
            get { return fNewSellPrice; }
            set { SetPropertyValue<decimal>("NewSellPrice", ref fNewSellPrice, value); }
        }
        decimal fOldLowestSellPrice;
        public decimal OldLowestSellPrice
        {
            get { return fOldLowestSellPrice; }
            set { SetPropertyValue<decimal>("OldLowestSellPrice", ref fOldLowestSellPrice, value); }
        }
        decimal fNewLowestSellPrice;
        public decimal NewLowestSellPrice
        {
            get { return fNewLowestSellPrice; }
            set { SetPropertyValue<decimal>("NewLowestSellPrice", ref fNewLowestSellPrice, value); }
        }
    }
}
